package com.StarStudio.Mapper;

import com.StarStudio.Domain.MainZone;
import org.apache.ibatis.annotations.*;

@Mapper
public interface MainZoneMapper {

    @Select("select * from mainzone")
    public MainZone get();

    @Insert("insert into mainzone  values (null, #{mainzone_name}, #{mainzone_location}, #{mainzone_area}, #{mainzone_agricultural_area}, #{mainzone_planting_area}, #{mainzone_introduction})")
    public boolean add(MainZone mainzone);

    @Update("update mainzone set mainzone_name=#{mainzone_name},mainzone_location=#{mainzone_location},mainzone_area = #{mainzone_area}, mainzone_agricultural_area=#{mainzone_agricultural_area},mainzone_planting_area=#{mainzone_planting_area},mainzone_introduction=#{mainzone_introduction}")
    public boolean update(MainZone updateMainZone);

}
